package com.learn.micro_mall.service.api.category;

import com.learn.micro_mall.common.response.PlainResult;
import com.learn.micro_mall.service.request.category.CategoryDeleteRequest;
import com.learn.micro_mall.service.request.category.CategoryCreateRequest;
import com.learn.micro_mall.service.request.category.CategoryUpdateRequest;
import com.learn.micro_mall.service.response.category.CategoryDeleteResponse;
import com.learn.micro_mall.service.response.category.CategoryCreateResponse;
import com.learn.micro_mall.service.response.category.CategoryUpdateResponse;

public interface CategoryService {

    /**
     * 创建商品分类
     * @param request
     * @return
     */
    PlainResult<CategoryCreateResponse> createCategory(CategoryCreateRequest request) throws Exception;


    /**
     * 更新商品分类
     * @param request
     * @return
     */
    PlainResult<CategoryUpdateResponse> updateCategory(CategoryUpdateRequest request) throws Exception;


    /**
     * 删除商品分类
     * @param request
     * @return
     */
    PlainResult<CategoryDeleteResponse> deleteCategory(CategoryDeleteRequest request) throws Exception;

}
